//
//  UIButton+Common.h
//  beichoo_N_ios
//
//  Created by 陈健 on 2017/8/22.
//  Copyright © 2017年 陈健. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Common)

/**
 button快速初始化

 @param color textColor
 @param font label Font
 @return button
 */
+ (UIButton *)buttonWithTitleColor:(UIColor *)color titleColor:(CGFloat)font;

/**
 button快速初始化

 @param title context
 @param color textColor
 @param font label Font
 @return button
 */
+ (UIButton *)buttonWithTitle:(NSString *)title titleColor:(UIColor *)color titleFont:(CGFloat)font;

/**
 扩展button的点击范围
 
 @param hitTestEdgeInsets 传入的范围
 */

- (void)setHitTestEdgeInsets:(UIEdgeInsets)hitTestEdgeInsets;
@property(nonatomic, assign) UIEdgeInsets hitTestEdgeInsets;
/**
 图片按钮快速初始化
 
 @param image 正常状态显示图片
 @param selectImage 选中状态显示图片
 */
+ (UIButton *)buttonWithImage:(UIImage *)image selectImage:(UIImage *)selectImage;

@end
